using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect34-消耗敌方几点资源", menuName = "Skill/Effect/Effect34-消耗敌方几点资源", order = 34)]
public class Effect34 : EffectBase
{
    public int count;
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if(pair.Chess.GetChessSide() == ChessSide.Player1)
            PlayerResourcesManager.GetInstance().ReduceResources(ChessSide.Player2, count);
        else
            PlayerResourcesManager.GetInstance().ReduceResources(ChessSide.Player1, count);
    }
}